import _ from 'lodash';
import { CHECKED } from "../constants/common";

// 用于判断公共组件Checkbox 是否选中
export const isChecked = function(checkedVal, value) {
  const args = [...arguments];

  if (args.length === 1) return CHECKED === checkedVal;

  return CHECKED === checkedVal && value;
};